package org.wangp.business.user.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import org.springframework.security.crypto.password.PasswordEncoder

/**
 * @author wangpeng (๑•ᴗ•๑)
 * @date 2021/10/20 9:50
 */
@Configuration
class SecurityConfiguration {

	@Bean
	fun passwordEncoder(): PasswordEncoder = BCryptPasswordEncoder()
}
